package com.scs.application.core.msg.listener;

import com.scs.application.core.msg.event.MsgEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MsgListener {
    @EventListener
    public void onMsgEvent(MsgEvent msgEvent) {
        log.info("收到一条消息" + msgEvent.get_message().getSceneCode());

    }
}
